package com.exahq.mapper;

import com.exahq.entity.Companydata;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.exahq.entity.ResultCompany;
import com.exahq.entity.SelectDataCompany;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lhq
 * @since 2021-02-27
 */
@Repository
@Mapper
public interface CompanydataMapper extends BaseMapper<Companydata> {

    List<ResultCompany> getByQuery(SelectDataCompany selectData);

    int getCount(SelectDataCompany selectData);

    Companydata getDetail(Integer id);

    List<Integer> getSumNumber();

    List<Companydata> dataByTime();

    List<Companydata> dataNew();

    List<Companydata> selectCompanyData(SelectDataCompany companyData);

}
